@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.edit-dialog .el-dialog {
  border-radius: 12px !important;
  .el-dialog__header {
    line-height: 16px;
    margin-right: 0;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ebebec;
  }
}
.device-dialog .el-dialog {
  border-radius: 12px !important;
  .el-dialog__header {
    line-height: 16px;
    margin-right: 0;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ebebec;
  }
  .el-dialog__footer {
    text-align: center;
  }
}

/* 滚动条样式 begin */
::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}

::-webkit-scrollbar-track {
  width: 6px;
  background: rgba(#101f1c, 0.1);
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(#101f1c, 0.35);
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(#101f1c, 0.4);
}

* {
  //Firefox浏览器滚动条样式
  scrollbar-color: #e5e5e5 #f7f7f9; //滚动条轨道颜色、滚动条滑块的颜色
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失
}
body {
  background-color: #edf0f3;
}
.platform-detail .el-menu {
  height: 80%;
  width: 100% !important;
  background-color: #ffffff;
}
.platform-detail .menuBox-no-expand {
  width: 80px !important;
}
.platform-detail .el-menu-item {
  height: 50px !important;
  position: relative;
}
.platform-detail .el-menu-item:hover,
.el-menu-item:focus {
  height: 50px !important;
  position: relative;
}
.platform-detail .el-menu-item:hover::after,
.platform-detail .el-menu-item:focus::after {
  position: absolute;
  right: 0;
  width: 4px;
  height: 50px;
  background-color: #1d99ef;
  border-radius: 2px;
  content: "";
}
.platform-detail .el-menu-item,
.el-sub-menu__title {
  color: #1d99ef;
  font-size: 14px;
}
.platform-detail .el-menu-item i {
  color: #1d99ef;
  font-size: 14px;
}
.platform-detail .el-sub-menu__title {
  color: #1d99ef;
  font-size: 14px;
}
.platform-detail .el-sub-menu {
  color: #1d99ef;
}
.platform-detail .el-menu-item:hover,
.el-menu-item:focus {
  background: linear-gradient(88.31deg, #dbf0ff 1.43%, #ffffff 98.57%);
}
.platform-detail .el-menu-item:hover {
  background: linear-gradient(88.31deg, #dbf0ff 1.43%, #ffffff 98.57%);
}
.platform-detail .el-menu-item:focus {
  background: linear-gradient(88.31deg, #dbf0ff 1.43%, #ffffff 98.57%);
}
.platform-detail .el-menu-item.is-active {
  position: relative;
  background: linear-gradient(88.31deg, #dbf0ff 1.43%, #ffffff 98.57%);
  
}
.platform-detail .el-menu-item.is-active::after {
  position: absolute;
  right: 0;
  width: 4px;
  height: 50px;
  background-color: #1d99ef;
  border-radius: 2px;
  content: "";
}
/* .platform-detail .el-sub-menu__title:hover,
.el-sub-menu__title:focus {
  background: linear-gradient(88.31deg, #dbf0ff 1.43%, #ffffff 98.57%);
} */
.platform-detail .el-sub-menu__title i {
  color: #1d99ef !important;
}
/* .el-menu.el-menu-vertical-demo {
  width: 270px !important;
} */
.platform-detail .menuBox::-webkit-scrollbar {
  width: 0px;
}

.platform-detail .menuBox::-webkit-scrollbar-track {
  background-color: none;
}

.platform-detail .menuBox::-webkit-scrollbar-thumb {
  background-color: none;
}

.platform-detail .menuBox::-webkit-scrollbar-thumb:hover {
  background-color: none;
  position: relative;
}

.platform-detail .menuBox::-webkit-scrollbar-thumb:active {
  background-color: none;
  position: relative;
}
.platform-detail .main::-webkit-scrollbar {
  width: 0px;
}

.platform-detail .main::-webkit-scrollbar-track {
  background-color: none;
}

.platform-detail .main::-webkit-scrollbar-thumb {
  background-color: none;
}

.platform-detail .main::-webkit-scrollbar-thumb:hover {
  background-color: none;
}

.platform-detail .main::-webkit-scrollbar-thumb:active {
  background-color: none;
}
.platform-detail .el-menu {
  border-right: none !important;
}
.platform-detail .el-main {
  padding: 0px;
}
.map-info-content {
  flex: 1;
  .title {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    color: #292929;
    .left {
      .point {
        font-size: 16px;
        font-weight: 600;
        line-height: 27px;
        margin-right: 20px;
        :first-child {
          margin-right: 5px;
        }
        display: flex;
        align-items: center;
      }
      .point-err {
        width: 18px;
        height: 18px;
        border-radius: 100%;
        background-color: #d80000;
        border: 5px solid rgb(249, 214, 214);
      }
      .point-no-err {
        width: 18px;
        height: 18px;
        border-radius: 100%;
        background-color: #0084df;
        border: 5px solid rgb(214, 235, 250);
      }
      display: flex;
      justify-content: flex-start;
    }
    .device-tip {
      font-size: 16px;
      font-weight: 600;
      line-height: 27px;
      color: #0a0a0a;
      margin-right: 5px;
    }
    .device-num {
      font-size: 20px;
      font-weight: 600;
      line-height: 27px;
      color: #0a0a0a;
    }
    .right {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      > :first-child {
        margin-right: 30px;
      }
      .flex {
        display: flex;
        align-items: center;
        img {
          margin-right: 10px;
          width: 25px;
        }
        .device-tip {
          font-size: 16px;
          font-weight: 600;
          line-height: 27px;
          color: #0a0a0a;
          margin-right: 5px;
        }
        .device-num {
          font-size: 20px;
          font-weight: 600;
          line-height: 27px;
          color: #0a0a0a;
        }
      }
    }
  }
  .flex-map {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    .floor-box {
      min-width: 40px;
      padding-right: 10px;
      .item {
        display: flex;
        vertical-align: middle;
      }
      .img {
        margin: auto;
      }
      .floor-item {
        width: 32px;
        text-align: center;
        color: #000;
        font-weight: 700;
        font-size: 18px;
        line-height: 24px;
      }
      .active {
        font-weight: 700;
        font-size: 24px;
        line-height: 32px;
        color: #1d99ef;
        &::after {
          content: "";
          width: 20px;
          height: 4px;
          border-radius: 11px;
          background-color: #0084df;
          display: block;
          margin: auto;
        }
      }
    }
  }
}
